package com.kaifamiao.methods;

public class Cat {
    public String name;

    // [修饰符] 返回类型 方法名([形参列表]) [ throws 异常类型 ]
    public int add( int a, int b ) {
        int c = a + b;
        return c;
    }

    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.name = "开发喵";
        int a = 100;
        int b = 200;
        int result = cat.add( a, b );
        System.out.println( "两数之和为: " + result );
    }
}
